package com.edu.whty.service;

import com.edu.whty.entity.base.CloudPage;
import com.edu.whty.entity.base.PageList;
import com.edu.whty.entity.cloud.TbTeachingRes;
import com.edu.whty.entity.cloud.TbTeachingResPackage;
import com.edu.whty.entity.cloud.TeachingResPackageReq;
import com.edu.whty.entity.cloud.TeachingResReq;
import com.edu.whty.entity.comment.CommentsReq;

import java.util.List;
import java.util.Map;

public interface TeachingResService {

	 Map<String, Object> addComment(CommentsReq comments, String netIp) throws Exception;

	List<Map<String, Object>> getComment(CommentsReq commentsReq) throws Exception;

	List<Map<String, Object>> statComments(CommentsReq commentsReq) throws Exception;

	 PageList<TbTeachingResPackage> ysykBagPageList(TeachingResPackageReq teachingResPackageReq) throws Exception;

	 CloudPage<TbTeachingRes> teachingResPageList(TeachingResReq teachingResReq)throws Exception;

	 CloudPage<TbTeachingRes> jpzyResPageList(TeachingResReq teachingResReq)throws Exception;

	 void timesPlusOneById(Map<String, Object> map) throws Exception;


	TbTeachingRes getTeachingResById(TbTeachingRes param);

	void modTeachingResById(TbTeachingRes upRes);
}
